From: Matthias Clasen Date: Sat, 12 Jul 2008 00:36:35 +0000 (+0000) Subject: Improve docs X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~428^2^2~31662 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=29abd7c87c6a9f7e0798d7b6cbde1646fe310d49;p=gtk4.git Improve docs svn path=/trunk/; revision=20819 --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index ecad4c10c1..e89fa1725e 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,10 @@ +2008-07-11 Matthias Clasen + + Bug 537430 – label pango attributes & i18n + + * gtk/tmpl/gtklabel.sgml: Improve docs for Pango attributes in + builder xml. Pointed out by Christian Persch + 2008-07-10 Stefan Kost Bug 540967 – docs build slowly because of entities diff --git a/docs/reference/gtk/tmpl/gtklabel.sgml b/docs/reference/gtk/tmpl/gtklabel.sgml index 25e10b1283..ad9179b894 100644 --- a/docs/reference/gtk/tmpl/gtklabel.sgml +++ b/docs/reference/gtk/tmpl/gtklabel.sgml @@ -17,18 +17,25 @@ implies, most labels are used to label another widget such as a The GtkLabel implementation of the GtkBuildable interface supports a custom <attributes> element, which supports any number of <attribute> elements. the <attribute> element has attributes named name, value, -start and end and allows you to specify #PangoAttributs for this label. +start and end and allows you to specify #PangoAttribute values for this label. -A UI definition fragment specifying pango attributes +A UI definition fragment specifying Pango attributes - + + " ]]> + +The start and end attributes specify the range of characters to which the +Pango attribute applies. If start and end are not specified, the attribute is +applied to the whole text. Note that specifying ranges does not make much +sense with translatable attributes. Use markup embedded in the translatable +content instead.